<?php

/**
 * @file
 * Default theme implementation to display the basic html structure of a single
 * Drupal page.
 *
 * Variables:
 * - $css: An array of CSS files for the current page.
 * - $language: (object) The language the site is being displayed in.
 *   $language->language contains its textual representation.
 *   $language->dir contains the language direction. It will either be 'ltr' or 'rtl'.
 * - $rdf_namespaces: All the RDF namespace prefixes used in the HTML document.
 * - $grddl_profile: A GRDDL profile allowing agents to extract the RDF data.
 * - $head_title: A modified version of the page title, for use in the TITLE
 *   tag.
 * - $head_title_array: (array) An associative array containing the string parts
 *   that were used to generate the $head_title variable, already prepared to be
 *   output as TITLE tag. The key/value pairs may contain one or more of the
 *   following, depending on conditions:
 *   - title: The title of the current page, if any.
 *   - name: The name of the site.
 *   - slogan: The slogan of the site, if any, and if there is no title.
 * - $head: Markup for the HEAD section (including meta tags, keyword tags, and
 *   so on).
 * - $styles: Style tags necessary to import all CSS files for the page.
 * - $scripts: Script tags necessary to load the JavaScript files and settings
 *   for the page.
 * - $page_top: Initial markup from any modules that have altered the
 *   page. This variable should always be output first, before all other dynamic
 *   content.
 * - $page: The rendered page content.
 * - $page_bottom: Final closing markup from any modules that have altered the
 *   page. This variable should always be output last, after all other dynamic
 *   content.
 * - $classes String of classes that can be used to style contextually through
 *   CSS.
 *
 * @see template_preprocess()
 * @see template_preprocess_html()
 * @see template_process()
 */
?>

<div id="newsletter">
<!-- Begin Newsletter -->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title><?php print $title; ?></title>
<style>
p{font-size: 12px;line-height:16px; color: #808080; font-family: arial,helvetica,sans-serif;}
</style>

</head>
<body>

<table style="width: 500px;" align="center" bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<table id="Table_01" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2"><img src="http://thinkparallax.com/images/newsletter/global/logo2.png" border="0" usemap="#pvc_newsletter_noXX_01_head_Map" /></td>
<td colspan="2"><?php print render($content['field_newsletter_number']);?></td>
</tr>
<tr>
<td colspan="4" style="text-align:center;"><div style="margin-left:10px;width:700px;border-left: 2px solid #cacaca;border-right: 3px solid #cacaca;"><a title="Parallax" target="_blank" href="http://www.thinkparallax.com/"><?php print render($content['field_newsletter_header']);?></a></div></td>
</tr>
<tr>
<td background="http://thinkparallax.com/images/newsletter/global/pvc_newsletter_noXX_04_left.jpg"></td>
<td colspan="2" style="padding: 15px;" valign="top">

<?php print render($content['body']);?>

</td>
<td background="http://thinkparallax.com/images/newsletter/global/pvc_newsletter_noXX-_06_rig.jpg "></td>
</tr>
<tr>
<td colspan="4"><img src="http://thinkparallax.com/images/newsletter/global/footer2.png" border="0" usemap="#pvc_newsletter_noXX_07_footer_Map" /></td>
</tr>
<tr>
<td colspan="4"><img src="http://thinkparallax.com/images/newsletter/global/pvc_newsletter_noXX_08.gif" usemap="#pvc_newsletter_noXX_08_Map" border="0" height="63" width="722" /></td>
</tr>
<tr>
<td><img src="http://thinkparallax.com/images/newsletter/global/spacer.gif" height="1" width="175" /></td>
<td><img src="http://thinkparallax.com/images/newsletter/global/spacer.gif" height="1" width="367" /></td>
<td><img src="http://thinkparallax.com/images/newsletter/global/spacer.gif" height="1" width="154" /></td>
<td><img src="http://thinkparallax.com/images/newsletter/global/spacer.gif" height="1" width="26" /></td>
</tr>
</table>
<?php
$newsletterID = check_plain($node->field_newsletter_id[$node->language][0]['value']);
$newsletterURL = "http://thinkparallax.com/images/newsletter/".$newsletterID."/newsletter.html";
?>

<map name="pvc_newsletter_noXX_01_head_Map">
<area shape="rect" coords="445,25,464,41" href="https://www.facebook.com/thinkparallax" target="_blank">
<area shape="rect" coords="463,25,478,41" href="https://twitter.com/thinkparallax" target="_blank" />
</area>
<area shape="rect" coords="288,28,384,38" href="mailto:jonathan@thinkparallax.com"></area>
<area shape="rect" coords="175,28,277,38" href="http://www.thinkparallax.com" target="_blank"></area>
<area shape="rect" coords="106,72,478,110" href="http://www.thinkparallax.com" target="_blank"></area> 
</map>
<map name="pvc_newsletter_noXX_07_footer_Map">
<area shape="rect" coords="446,67,463,83" href="https://www.facebook.com/thinkparallax" target="_blank">
<area shape="rect" coords="463,67,478,82" href="https://twitter.com/thinkparallax" target="_blank" />
</area>
<area shape="rect" coords="26,1,159,59" href="http://www.thinkparallax.com" target="_blank"></area>
<area shape="rect" coords="290,69,386,79" href="mailto:jonathan@thinkparallax.com"></area>
<area shape="rect" coords="175,69,277,79" href="http://www.thinkparallax.com" target="_blank"></area>
<area shape="rect" coords="496,70,623,80" href="http://www.thinkparallax.com/blog" target="_blank"></area> 
</map>
<map name="pvc_newsletter_noXX_08_Map">
<area shape="rect" coords="84,12,124,20" href="<?php print $newsletterURL;?>" target="_blank"></area>
<area shape="rect" coords="657,12,712,20" href="%Link:Unsubscribe%" target="_blank"></area> 
</map>
</td>
</tr>
</table>
</body>
</html>

<!-- End Newsletter -->
</div>
